package com.tuars.instalacionesalberti.vistas;

import java.awt.BorderLayout;
import java.awt.Container;

import javax.swing.BorderFactory;
import javax.swing.JDialog;
import javax.swing.JProgressBar;
import javax.swing.border.Border;

public class BarraProgreso {
  public static void main(String args[]) {
    JDialog f = new JDialog();
    f.setTitle("Leyendo base de datos");
    
    Container content = f.getContentPane();
    
    JProgressBar progressBar = new JProgressBar(0, 100);
    progressBar.setValue(50);
    progressBar.setStringPainted(true);
    Border border = BorderFactory.createTitledBorder("Leyendo...");
    progressBar.setBorder(border);
    content.add(progressBar, BorderLayout.NORTH);
    
    f.setSize(300, 100);
    f.setVisible(true);
  }
}
